package cat.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import cat.entity.Category;
import cat.mapper.CategoryMapper;
import cat.service.CategoryService;

@Repository
public class CategoryServiceImpl implements CategoryService {

	@Resource
	private CategoryMapper categoryMapper;
		
	@Override
	public List<Category> listCategory() {
		return categoryMapper.listCategory();
	}

	@Override
	public List<Category> listCategoryByParentId(Integer parentId) {
		return categoryMapper.listCategoryByParentId(parentId);
	}
}
